package com.wyh.aop.controller;

import com.wyh.aop.aspect.MyAspect;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2025-07-17
 * Time: 19:39
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/u1")
    public String u1(){
        int a = 1/0;
        return "u1";
    }

    @MyAspect
    @RequestMapping("/u2")
    public String u2(){
        return "u2";
    }

    @RequestMapping("/u3")
    public String u3(){
        return "u3";
    }
}
